Skip to content

Add :Augment help [command] subcommand#67

Merged
mgmonteleone merged 1 commit into
mainfrom
augmentstaging1-css-904-gh-32-add-augment-help-command-to-list-available-commands
Jun 9, 2026
Merged

Add :Augment help [command] subcommand#67
mgmonteleone merged 1 commit into
mainfrom
augmentstaging1-css-904-gh-32-add-augment-help-command-to-list-available-commands

Conversation

@mgmonteleone

Copy link
Copy Markdown
Collaborator

Summary

Adds a :Augment help [command] subcommand, as requested in #32.

  • :Augment help lists every available command with a one-line description.
  • :Augment help <command> shows more detailed inline help for that command (e.g. :Augment help chat). An unknown command produces a friendly error pointing back to :Augment help.
  • The deprecated enable / disable commands are listed and clearly marked (deprecated), pointing users to the g:augment_disable_completions option.
  • Like status and log, help works even when the plugin fails to initialize.
  • augment#CommandComplete automatically picks up help (it returns the keys of the command-handler dict), so tab completion includes it.

Implementation

  • New s:CommandHelp(range, args) handler and an ordered s:command_help data structure in autoload/augment.vim, following the existing s:CommandXxx style and using echohl highlight groups.
  • help added to the s:command_handlers dict and to the pre-init allow-list in augment#Command.

Docs

  • doc/augment.txt: documented the new :Augment help command.
  • README.md: added help to the command list.
  • CHANGELOG.md: added an Unreleased entry.

Testing

The repository has no test framework, so this was verified manually with headless vim -es and nvim --headless smoke checks:

  • :Augment help lists all commands (deprecated ones marked).
  • :Augment help chat / :Augment help enable show inline detail.
  • Case-insensitive lookup (:Augment help CHAT) works.
  • :Augment help bogus shows the friendly unknown-command error.
  • :Augment help works with the plugin in an uninitialized state.
  • augment#CommandComplete includes help.

Fixes #32

Add a `help` subcommand that lists all available Augment commands with a
short description, and shows more detailed inline help for a specific
command via `:Augment help <command>`. The deprecated `enable`/`disable`
commands are listed and point users to `g:augment_disable_completions`.

The `help` command is available even when the plugin fails to initialize,
matching the existing behavior of `status` and `log`. Documentation in
`doc/augment.txt`, the README command list, and the changelog are updated
accordingly.

Fixes #32
@mgmonteleone mgmonteleone marked this pull request as draft June 9, 2026 11:08
@mgmonteleone mgmonteleone marked this pull request as ready for review June 9, 2026 11:10
@mgmonteleone mgmonteleone self-assigned this Jun 9, 2026
@mgmonteleone mgmonteleone merged commit 8fd4145 into main Jun 9, 2026
@mgmonteleone mgmonteleone deleted the augmentstaging1-css-904-gh-32-add-augment-help-command-to-list-available-commands branch June 9, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add "Augment help" command to list commands

1 participant